# SPDX-FileCopyrightText: Copyright 2022-2024 深圳市同心圆网络有限公司
# SPDX-License-Identifier: GPL-3.0-only

tags:
  - projectTask
summary: 所有任务
description: 列出所有任务
operationId: "{{ uniqueOpId() }}"
parameters:
  - $ref: "@parameters/projectId.yml.njk"
  - $ref: "@parameters/offset.yml.njk"
  - $ref: "@parameters/limit.yml.njk"
  - $ref: "@parameters/accessToken.yml.njk"
responses:
  "200":
    description: 成功
    headers: 
      Access-Control-Allow-Origin:
        schema:
          type: string
          default: "*"
    content:
      application/json:
        schema:
          type: object
          properties:
            totalCount:
              type: integer
              description: 任务总数量
            taskList:
              type: array
              items:
                $ref: "@schemas/taskInfo.yml.njk"
  "500":
    description:  失败
    headers: 
      Access-Control-Allow-Origin:
        schema:
          type: string
          default: "*"
    content:
      application/json:
        schema:
          $ref: "@schemas/errInfo.yml.njk"